<template>
  <div class="home">
    <home-top></home-top>
    <better-scroll class="content" ref="scroll"
       :probe-type="3" :pull-up-load="true">
      <swiper>
        <span slot="title">推介美食</span>
        <span slot="ename">Recommend delicious food</span>
        <span slot="btn">View all >></span>
      </swiper>
      <swiper :width="width" :height="height">
        <span slot="title">附近的店</span>
        <span slot="ename">Nearby shops</span>
        <span slot="btn">12 places >></span>
      </swiper>
    </better-scroll>
    
  </div>
</template>

<script>
import homeTop from './components/homeTop.vue'
import betterScroll from 'components/common/scroll/betterScroll.vue'
import swiper from 'components/common/swiper/swiper.vue'
export default {
  name: 'Home',
  data () {
    return {
      width: 180,
      height: "height: 7rem"
    }
  },
  components: {
    homeTop,
    betterScroll,
    swiper,
  }
}
</script>

<style scoped lang="scss">
.home {
  height: 100vh;
  .content {
    height: calc(100% - 11rem);
    overflow: hidden;
  }
}
</style>
